-module(modver3).
-export([get_version/1]).
-vsn(1.3).
-weather(sunny).

%% Returns the version of a given module
get_version(Module) ->
  ModuleInfo = Module:module_info(),
  {_, Attributes} = lists:keyfind(attributes, 1, ModuleInfo),
  {_, [Version]} = lists:keyfind(vsn, 1, Attributes),
  Version.
  
